﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace CSharpDemo
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }
Robot xiaoDou = new Robot();
        private void button1_Click(object sender, EventArgs e)
        {
            
            xiaoDou.ShowTime();
        }

        private void btnSendAndGet_Click(object sender, EventArgs e)
        {
            string question = txtQuestion.Text;
            txtQuestion.Text = "";
            txtLog.AppendText("问题:" + question + "\n");
            string anser = xiaoDou.GetAnswer(question);
            txtLog.AppendText("答案:" + anser + "\n");


        }
    }
}
